
<div id="content_inter" align="left">
    <div id="sub_menu"> Profil  <a href="<?php echo site_url('compte/description');?>"> | Description</a> <a href="<?php echo site_url('compte/mot_de_passe');?>">  | Mot de passe</a></div>
      
        <?php echo form_open_multipart('compte/enregistrer');?>
       <table id="tinscription" width="100%">

                   <tr><td width="300px">Madame - Monsieur<span class="oblige">*</span></td>
                            <td width="400px">
                       <input type="radio" name="civile" value="1" <?php if($user->civille==1) echo "checked";?> />Monsieur<br/>
                       <input type="radio" name="civile" value="2" <?php if($user->civille==2) echo "checked";?>  />Madame<br/>
                       <input type="radio" name="civile" value="3" <?php if($user->civille==3) echo "checked";?> />Mademoiselle<br/>
                   </td>
                        <td></td>
                        </tr>
                   <tr><td>Nom<span class="oblige">*</span></td><td><input type="text" name="nom" value="<?php echo $user->nom ?>"/></td> <td><?php echo form_error('nom'); ?></td></tr>
                        <tr><td>Prénom<span class="oblige">*</span></td><td><input type="text" name="prenom" value="<?php echo $user->prenom ?>"/></td><td><?php echo form_error('prenom'); ?></td></tr>
                   <tr><td>Fonction / Profession<span class="oblige">*</span></td><td><input type="text" name="profession" value="<?php echo $user->profession ?>"/></td><td><?php echo form_error('profession'); ?></td></tr>
                   <tr><td>Statut<span class="oblige">*</span> </td><td>
                       <select name="statut">
                        <option value="1" <?php if($user->statut==1) echo "selected";?> >Salarié </option>
                           <option value="2" <?php if($user->statut==2) echo "selected";?> >Profession libérale </option>
                           <option value="3" <?php if($user->statut==3) echo "selected";?> >Profession indépendante</option>
                       </select>
                   </td></tr>
                   <tr><td>Raison sociale de l’entreprise / Activité <span class="oblige">*</span></td><td><input type="text" name="raison_ent" value="<?php echo $user->raison_ent ?>"/><?php echo form_error('raison_ent'); ?></td><td><?php echo form_error('raison_ent'); ?></td></tr>
                   <tr><td>Sport(s) pratiqué(s)<span class="oblige">*</span> </td><td>

 <div style="height:300px;width:400px; overflow:auto">
 <?php
  $array=explode(",", $user->sport);
 foreach ($sports as $aRow):?>
     <input type="checkbox" name="sport[]" value="<?php echo $aRow['id']?>" <?php if (in_array($aRow['id'] ,$array)) echo "CHECKED"; ?>/><?php echo $aRow['nom']?><br/>
<?php endforeach; ?>

</div>
</td>
<td><?php echo form_error('sport[]'); ?></td>
                   </tr>
                   <tr><td>Votre pratique du sport</td><td>
                       <select name="pratique">

                           <option value="1"  <?php if($user->pratique==1) echo "SELECTED";?>>Loisir </option>
                           <option value="2" <?php if($user->pratique==2) echo "SELECTED";?>>Compétition</option>
                           <option value="3" <?php if($user->pratique==3) echo "SELECTED";?>>Professionnel</option>
                       </select>
                   </td></tr>
                   <tr><td>Précisions sur votre pratique du sport </td><td><input type="text" name="precision" value="<?php echo $user->precis?>"/></td></tr>

                   <tr><td>Vous recherchez des <span class="oblige">*</span></td><td>

 <?php
    $array=explode(",", $user->recherche);
 foreach ($recherche as $aRow):?>
<input type="checkbox" name="recherche[]" value="<?php echo $aRow['id']?>" <?php if (in_array($aRow['id'] ,$array)) echo "CHECKED"; ?> /><?php echo $aRow['nom']?><br/>
<?php endforeach; ?>

                   </td>
 <td><?php echo form_error('recherche[]'); ?></td>
                        </tr>
                   <tr><td>Numéro SIRET <span class="oblige">*</span></td><td><input type="text" name="siret" value="<?php echo $user->siret; ?>"/></td><td><?php echo form_error('siret'); ?></td></tr>
                   <tr><td>Date de création de l’entreprise</td><td><input type="text" name="date_creation" value="<?php echo $user->date_creation ;?>"/></td></tr>
                   <tr><td>Effectif de l’entreprise</td><td><input type="text" name="effectif" value="<?php echo $user->effectif ;?>"/></td></tr>
                   <tr><td>Adresse<span class="oblige">*</span></td><td>

                       <textarea name="adr"><?php echo $user->adr; ?></textarea>
                   </td>
                        <td><?php echo form_error('adr'); ?></td>
                        </tr>
                   <tr><td>Code postal<span class="oblige">*</span></td><td><input type="text" name="postale" value="<?php echo $user->postale; ?>"/></td><td><?php echo form_error('postale'); ?></td></tr>
                   <tr><td>Ville<span class="oblige">*</span></td><td><input type="text" name="ville" value="<?php echo $user->ville; ?>"/></td><td><?php echo form_error('ville'); ?></td></tr>
                   <tr><td>Site internet </td><td><input type="text" name="site" value="<?php echo $user->site; ?>"/></td></tr>
                   <tr><td>Téléphone<span class="oblige">*</span> </td><td><input type="text" name="tel" value="<?php echo $user->tel; ?>"/></td><td><?php echo form_error('tel'); ?></td></tr>
                   <tr><td>Téléphone portable</td><td><input type="text" name="portable" value="<?php echo $user->portable; ?>"/></td><td><?php echo form_error('portable'); ?></td></tr>
                   <tr><td>Email</td><td><?php echo $user->email; ?></td><td></td></tr>
                   <tr><td>Logo de l’entreprise</td><td>
                           <img width="80px" src="<?php echo base_url().'assets/img_web_ents/thumbs/'.$user->logo_ent ?>"/>
                           <input type="file" name="logo_ent" size="20" ></td></tr>
                   <tr><td>Photo de l’adhérent</td><td>
                            <img width="80px" src="<?php echo base_url().'assets/img_web_ads/thumbs/'.$user->logo_ad ?>"/>
                           <input type="file" name="logo_ad" size="20"></td></tr>
                   <tr><td>Secteur d’activité <span class="oblige">*</span></td>
                                              <td>
                           <select name="secteur">
<?php foreach ($secteur as $aRow):?>
<option value="<?php echo $aRow['id']?>" <?php if($user->secteur==$aRow['id']) echo "SELECTED";?>  ><?php echo $aRow['nom']?></option>
<?php endforeach; ?>
</select>



                   </td></tr>
<tr><td></td><td><input type="submit" name="submit" class="enregistrer" value=" "/></td></tr>
        </table>
        </form>
    </div>
</div>
